/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Frame_Admin.java
 *
 * Created on 26 déc. 2008, 18:23:54
 */

package UI;

/**
 *
 * @author Elsa
 */
public class Frame_Admin extends javax.swing.JFrame {

    /** Creates new form Frame_Admin */
    public Frame_Admin() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jColorChooser1 = new javax.swing.JColorChooser();
        jPanel1 = new javax.swing.JPanel();
        jButtonAjouterSpectacle = new javax.swing.JButton();
        jButtonEditerSpectacle = new javax.swing.JButton();
        jButtonAnnulerSpectacle = new javax.swing.JButton();
        jButtonListeSpectacles = new javax.swing.JButton();
        jButtonPlanning = new javax.swing.JButton();
        jButtonQuitter = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(255, 255, 102));

        jPanel1.setBackground(new java.awt.Color(255, 255, 102));

        jButtonAjouterSpectacle.setBackground(new java.awt.Color(153, 0, 0));
        jButtonAjouterSpectacle.setForeground(new java.awt.Color(255, 255, 255));
        jButtonAjouterSpectacle.setText("Ajouter un nouveau spectacle");
        jButtonAjouterSpectacle.setActionCommand("Inscrire un nouveau spectacle");
        jButtonAjouterSpectacle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAjouterSpectacleActionPerformed(evt);
            }
        });

        jButtonEditerSpectacle.setBackground(new java.awt.Color(153, 0, 0));
        jButtonEditerSpectacle.setForeground(new java.awt.Color(255, 255, 255));
        jButtonEditerSpectacle.setText("Editer un spectacle");
        jButtonEditerSpectacle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEditerSpectacleActionPerformed(evt);
            }
        });

        jButtonAnnulerSpectacle.setBackground(new java.awt.Color(153, 0, 0));
        jButtonAnnulerSpectacle.setForeground(new java.awt.Color(255, 255, 255));
        jButtonAnnulerSpectacle.setText("Annuler un spectacle");
        jButtonAnnulerSpectacle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAnnulerSpectacleActionPerformed(evt);
            }
        });

        jButtonListeSpectacles.setBackground(new java.awt.Color(153, 0, 0));
        jButtonListeSpectacles.setForeground(new java.awt.Color(255, 255, 255));
        jButtonListeSpectacles.setText("Consulter la liste des spectacles");
        jButtonListeSpectacles.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonListeSpectaclesActionPerformed(evt);
            }
        });

        jButtonPlanning.setBackground(new java.awt.Color(153, 0, 0));
        jButtonPlanning.setForeground(new java.awt.Color(255, 255, 255));
        jButtonPlanning.setText("jButton5");
        jButtonPlanning.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonPlanningActionPerformed(evt);
            }
        });

        jButtonQuitter.setBackground(new java.awt.Color(153, 0, 0));
        jButtonQuitter.setForeground(new java.awt.Color(255, 255, 255));
        jButtonQuitter.setText("Quitter");
        jButtonQuitter.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonQuitterActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonAjouterSpectacle, javax.swing.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)
                    .addComponent(jButtonAnnulerSpectacle, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)
                    .addComponent(jButtonPlanning, javax.swing.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButtonQuitter, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonListeSpectacles, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonEditerSpectacle, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEditerSpectacle, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonAjouterSpectacle, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButtonListeSpectacles, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)
                    .addComponent(jButtonAnnulerSpectacle, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonQuitter, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE)
                    .addComponent(jButtonPlanning, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(44, 44, 44))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonQuitterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonQuitterActionPerformed
        // TODO add your handling code here:
        System.exit(0);
}//GEN-LAST:event_jButtonQuitterActionPerformed

    private void jButtonAjouterSpectacleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAjouterSpectacleActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonAjouterSpectacleActionPerformed

    private void jButtonEditerSpectacleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEditerSpectacleActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButtonEditerSpectacleActionPerformed

    private void jButtonAnnulerSpectacleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAnnulerSpectacleActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonAnnulerSpectacleActionPerformed

    private void jButtonListeSpectaclesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonListeSpectaclesActionPerformed
        // TODO add your handling code here:
       Frame_Admin_Liste_Spectacles f = new Frame_Admin_Liste_Spectacles ();
       f.setVisible(true);
       this.setVisible(false);
    }//GEN-LAST:event_jButtonListeSpectaclesActionPerformed

    private void jButtonPlanningActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPlanningActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jButtonPlanningActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Frame_Admin().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonAjouterSpectacle;
    private javax.swing.JButton jButtonAnnulerSpectacle;
    private javax.swing.JButton jButtonEditerSpectacle;
    private javax.swing.JButton jButtonListeSpectacles;
    private javax.swing.JButton jButtonPlanning;
    private javax.swing.JButton jButtonQuitter;
    private javax.swing.JColorChooser jColorChooser1;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables

}
